﻿using AutoMapper;
using ETask.Api.Dtos;
using ETask.Api.Models;

namespace ETask.Api.Mappers
{
    public static class MapperRegistrationExtensions
    {
        public static void AddGenericMappings(this IMapperConfigurationExpression config)
        {
            GenericMapper<User, UserDto, CreateUserDto, UpdateUserDto>.CreateMapProfile(config);
            GenericMapper<Project, ProjectDto, CreateProjectDto, UpdateProjectDto>.CreateMapProfile(config);
            GenericMapper<Dept, DeptDto, CreateDeptDto, UpdateDeptDto>.CreateMapProfile(config);
            GenericMapper<ProjectTask, ProjectTaskDto, CreateProjectTaskDto,UpdateProjectTaskDto>.CreateMapProfile(config);
            GenericMapper<ProjectDoc,ProjectDocDto,CreateProjectDocDto,UpdateProjectDocDto>.CreateMapProfile(config);
        }
    }
}
